package com.ruandi.Test17;

public class TestBook {
    public static void main(String[] args) {
        Book book1 = new Book("001","《毛泽东思想》",59);

        Book book2 = new Book("002","《邓小平理论》",49);

        Book book3 = new Book("003","《习近平新时代中国特色社会主义思想》",39);

        if (book1.getPrice()> book2.getPrice()){
            if (book1.getPrice()> book3.getPrice()){
                book1.showAll();
            }
            else if (book2.getPrice()> book1.getPrice()){
                if (book2.getPrice()> book3.getPrice()){
                  book2.showAll();
                }
            }
            else {
               book3.showAll();
            }
        }

    }
}
